package com.docMan.dao.pojo;

/**
 * DocDirectoryRangeId entity. @author MyEclipse Persistence Tools
 */

public class DocDirectoryRangeId implements java.io.Serializable {

	// Fields

	private Integer directoryId;
	private Integer humanId;

	// Constructors

	/** default constructor */
	public DocDirectoryRangeId() {
	}

	/** full constructor */
	public DocDirectoryRangeId(Integer directoryId, Integer humanId) {
		this.directoryId = directoryId;
		this.humanId = humanId;
	}

	// Property accessors

	public Integer getDirectoryId() {
		return this.directoryId;
	}

	public void setDirectoryId(Integer directoryId) {
		this.directoryId = directoryId;
	}

	public Integer getHumanId() {
		return this.humanId;
	}

	public void setHumanId(Integer humanId) {
		this.humanId = humanId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof DocDirectoryRangeId))
			return false;
		DocDirectoryRangeId castOther = (DocDirectoryRangeId) other;

		return ((this.getDirectoryId() == castOther.getDirectoryId()) || (this
				.getDirectoryId() != null && castOther.getDirectoryId() != null && this
				.getDirectoryId().equals(castOther.getDirectoryId())))
				&& ((this.getHumanId() == castOther.getHumanId()) || (this
						.getHumanId() != null && castOther.getHumanId() != null && this
						.getHumanId().equals(castOther.getHumanId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getDirectoryId() == null ? 0 : this.getDirectoryId()
						.hashCode());
		result = 37 * result
				+ (getHumanId() == null ? 0 : this.getHumanId().hashCode());
		return result;
	}

}